Learn R Programming

rDotNet (version 0.9.1)

[.rDotNet: return ith element on a .NET object (such as an array, list, etc)

Description

This operator returns the ith element of an an indexable object.

Usage

# S3 method for rDotNet
[(obj,ith)

Arguments

obj

An object previously created with .cnew()

ith

numerical index into array, list, etc

Examples

Run this code
# NOT RUN {
## create instance of an object, using fully qualified class name
obj <- .cnew ("com.stg.math.Model", 1.0, 3.5)

## get the 34th element from this indexable object
element <- obj[34]

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab